package com.ruoyi.park.mapper;

import com.ruoyi.park.domain.MaRecordDetail;

import java.util.List;

/**
 * 记录关联物资Mapper接口
 *
 * @author cjie
 * @date 2021-09-16
 */
public interface MaRecordDetailMapper {
    /**
     * 查询记录关联物资
     *
     * @param id 记录关联物资ID
     * @return 记录关联物资
     */
     MaRecordDetail selectMaRecordDetailById(String id);

    /**
     * 查询记录关联物资列表
     *
     * @param maRecordDetail 记录关联物资
     * @return 记录关联物资集合
     */
     List<MaRecordDetail> selectMaRecordDetailList(MaRecordDetail maRecordDetail);

    /**
     * 新增记录关联物资
     *
     * @param maRecordDetail 记录关联物资
     * @return 结果
     */
     int insertMaRecordDetail(MaRecordDetail maRecordDetail);

    /**
     * 修改记录关联物资
     *
     * @param maRecordDetail 记录关联物资
     * @return 结果
     */
     int updateMaRecordDetail(MaRecordDetail maRecordDetail);

    /**
     * 删除记录关联物资
     *
     * @param id 记录关联物资ID
     * @return 结果
     */
     int deleteMaRecordDetailById(String id);

    /**
     * 批量删除记录关联物资
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
     int deleteMaRecordDetailByIds(String[] ids);

    /**
     * 通过记录id删除
     * @param recordId 记录id
     */
    void deleteMaRecordDetailByRecordId(String recordId);
}
